<template>
    <div >
        <div class="classifyGame vessel">
            <div class="tabButton">
                <div class="" @click="toggle('bt')">BT版</div>
                <div class="" @click="toggle('full')">满V版</div>
                <div class="" @click="toggle('normal')">正常版</div>
            </div>

            <div class="gameList clearFix">
                <div class="Gameicon " v-for="item in showData">
                    <div>
                        <img :src="item.imgsrc" alt="">
                    </div>
                    <span>
                        {{item.gameName}}
                    </span>
                </div>
            </div>
        </div>

    </div>
</template>

<script>

export default {
  components: {

  },
  title() {
    // return `米娱游戏_BT手游第一平台_手机网游_手机游戏下载_手机游戏排行榜`
  },
  data() {
    return {
      btGame: this.$store.state.GameClassify.BTgame,
      fullvGame: this.$store.state.GameClassify.fullVGame,
      showData: this.$store.state.GameClassify.BTgame
    }
  },
  methods: {
    toggle(change) {
      if (change == 'bt') {
        this.showData = this.btGame
      } else if (change == 'full') {
        this.showData = this.fullvGame
      } else {
        this.showData = this.btGame
      }
    }
  },

  asyncData({ store, route }) {},
  computed: {
    gamelish: function() {
      return this.$store.state.GameClassify
    }
  }
}
</script>

<style lang="less" scope>
.vessel {
    margin-bottom: 50px;
}

.classifyGame {
  padding: 25px;
}
.classifyGame .tabButton {
  width: 100%;
  height: 30px;
  div {
    float: left;
    width: 10%;
    line-height: 30px;
    text-align: center;
    border: 1px solid #fff;
    border-bottom: none;
    border-left: none;
    background: #fee051;
    font-weight:bold;
  }
}
.classifyGame {
    background: #fff
}
.classifyGame .gameList {
  border: 1px solid #c3c3c3;
  padding-left: 13px;
  padding-bottom: 25px;
  padding-top: 18px;
  .Gameicon {
    width: 5.6%;
    text-align: center;
    display: inline-block;
    margin-left: 11px;
    margin-top: 9px;
    div {
      height: 65px;
    }
    img {
      width: 100%;
      height: 100%;
    }
    span {
      font-size: 13px;
      margin-top: 8px;
      display: inline-block;
    }
  }
}
</style>


